package com.auto.learning.tools;

import com.auto.learning.R;

import android.graphics.drawable.BitmapDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.PopupWindow;

public class PopWindowUtils {
	public interface PopUtil{
		public void dissmiss();
		public void show(View dropview);
	}
	public static PopupWindow getPopupWindow(PopupWindow popupWindow,View view){
		popupWindow = new PopupWindow(view, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, true);
		popupWindow.setFocusable(true);
		popupWindow.setOutsideTouchable(true);
		popupWindow.setBackgroundDrawable(new BitmapDrawable());
		return popupWindow;
	}
}
